<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMallGoodsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('mall_goods', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment('名称');//
            $table->integer('type')->unsigned()->comment('产品分类');//
            $table->integer('tag')->unsigned()->unsigned()->comment('产品标签');
            $table->decimal('price', 8, 2)->unsigned()->comment('价格');//价格
            $table->decimal('original_price', 8, 2)->unsigned()->comment('原价');//原价
            $table->integer('need_xyb')->unsigned()->comment('需要多少小妖币兑换');  //
            $table->text('description')->comment('产品描述');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
